<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String conteudo = request.getParameter("conteudo");

    boolean logado = request.getSession().getAttribute("editor") != null ? true : false;
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>

        <script src="js/jquery.js" type="text/javascript" ></script>
        <script src="js/jqueryui/jquery-ui.js" type="text/javascript" ></script>
        <link rel="stylesheet" href="js/jqueryui/css/jquery-ui.css" />

        <script src="js/md5-min.js" type="text/javascript" ></script>
        <script src="js/uteis.js" type="text/javascript" ></script>
        <script src="js/jquery.validate.js" type="text/javascript" ></script>

        <link rel="stylesheet" href="style/style.css" />
    </head>
    <body>
        <style>
            #leftmenu{
                float: left;
                width: 200px;
            }
            #variavel{
                float: left;
                min-width: 600px;
            }
        </style>
        <div class="wrapper">
            <div id="content" class="container">

                <div id="leftmenu" >
                    <%@include file="/WEB-INF/paginas/editor/leftmenu.jsp" %>
                </div>
                <div id="variavel">
                    <%
                        if (!logado) {
                            pageContext.include("/WEB-INF/paginas/editor/login.jsp");
                        } else {
                            if (conteudo == null) {
                                pageContext.include("/WEB-INF/paginas/editor/editor.jsp");
                            } else {
                                if (conteudo.equals("login")) {
                                    pageContext.include("/WEB-INF/paginas/editor/login.jsp");
                                }
                                if (conteudo.equals("menu")) {
                                    pageContext.include("/WEB-INF/paginas/editor/menu.jsp");
                                }
                            }
                        }
                    %>
                </div>
            </div>
        </div>
    </body>
</html>
